package com.zretc.news.entity;

public class News {
	private int newsid;
	private String newstitle;
	private String newscontent;
	private String newsdate;//?这个如果是date,稍微麻烦一点，后续再说
	private int typeid;
	//private NewsType type;//实际应该是这样的
	
	
	
	public News(String newstitle, String newscontent, String newsdate, int typeid) {
		this.newstitle = newstitle;
		this.newscontent = newscontent;
		this.newsdate = newsdate;
		this.typeid = typeid;
	}
	
	public News(String newstitle, String newscontent, int typeid) {
		this.newstitle = newstitle;
		this.newscontent = newscontent;
		this.typeid = typeid;
	}
	
	
	
	public News(int newsid, String newstitle, String newscontent, String newsdate, int typeid) {
		super();
		this.newsid = newsid;
		this.newstitle = newstitle;
		this.newscontent = newscontent;
		this.newsdate = newsdate;
		this.typeid = typeid;
	}
	
	
	public News() {
		// TODO Auto-generated constructor stub
	}
	
	
	/**
	 * @return the newsid
	 */
	public int getNewsid() {
		return newsid;
	}

	/**
	 * @param newsid the newsid to set
	 */
	public void setNewsid(int newsid) {
		this.newsid = newsid;
	}
	/**
	 * @return the newstitle
	 */
	public String getNewstitle() {
		return newstitle;
	}
	/**
	 * @param newstitle the newstitle to set
	 */
	public void setNewstitle(String newstitle) {
		this.newstitle = newstitle;
	}
	/**
	 * @return the newscontent
	 */
	public String getNewscontent() {
		return newscontent;
	}
	/**
	 * @param newscontent the newscontent to set
	 */
	public void setNewscontent(String newscontent) {
		this.newscontent = newscontent;
	}
	/**
	 * @return the newsdate
	 */
	public String getNewsdate() {
		return newsdate;
	}
	/**
	 * @param newsdate the newsdate to set
	 */
	public void setNewsdate(String newsdate) {
		this.newsdate = newsdate;
	}
	/**
	 * @return the typeid
	 */
	public int getTypeid() {
		return typeid;
	}
	/**
	 * @param typeid the typeid to set
	 */
	public void setTypeid(int typeid) {
		this.typeid = typeid;
	}

	//其他省略暂时不用

}
